package cn.singno.springBoot.demo.ch06;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("cn.singno.springBoot.demo.ch06")
public class PrePostConfig
{
	@Bean(initMethod="init", destroyMethod="destroy")
	BeanWayService beanWayService(BeanDao beanDao){
		System.err.println("PrePostConfig.beanWayService()");
		return new BeanWayService(beanDao);
	}
}
